<?php
class Myblog_Form_UploadFile extends Zend_Form
{
	public function __construct($options = null)
	{
	parent:: __construct($options);
	$this->setName('upload');
	$this->setAttrib('enctype','multipart/form-data');

	

	$image=new Zend_Form_Element_File('image');
	$image->setLabel('Картинка')
		->setDestination('images/articles')
		->setRequired(true);
		

	$submit=new Zend_Form_Element_Submit('submit');
	$submit->setLabel('Загрузить');

	$this->addElements(array($image,$submit));
	}

}
